/**
 * Created by zhoutk on 17-4-18.
 */

import React, { Component } from 'react';
import {TodoLi, TodoClose} from '../web/styled/Todo';

class Li extends Component {
    opdel = () => {
        this.props.delop({id:this.props.id,text:this.props.text})
    };
    render =() => {
        return (
            <div>
            <TodoLi>{this.props.text}  <TodoClose onClick={this.opdel} type="submit">delete</TodoClose></TodoLi>
            </div>
        );
    }
};

export default Li;
